{strip}
{function name=tree}
	<ul>
		{foreach $rootItems as $rootItem}
			<li>
				<a href="{$rootItem->Page->url}">{$rootItem->Page->title}</a>
				{if count($rootItem->Items)}
					{tree rootItems=$rootItem->Items}
				{/if}
			</li>
		{/foreach}
	</ul>
{/function}
	<div class="menu">
		{tree rootItems=$menu->rootItems}
	</div>
{/strip}